
const express = require("express");
const app = express();
const { getIp } = require('./tools/business')
//这个包非常重要，是为了解决nodejs里面post参数接受异常的问题
let bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended:true}));

require('./routes.js')(app);

app.set('view options', { pretty: true });
app.listen(9998,d=>{
})
console.log('node is ready: http://' + getIp() + ':9998/')

